import   http  from  '../http/http.js' 



export default {
	
	__api__login:function(params){
		return  http({
			method:'post',
			url:'/login',
			data:params
		});
		
	},
	__api__register:function(params){
		return  http({
			method:'post',
			url:'/customer',
			data:params
			
		});
	},
	__api__customer_info:function(id){
		return  http({
			method:'get',
			url:'/customer/'+id
		});
		
	},
	__api__skus:function(params){
		return  http({
			method:'get',
			url:'/skus',
			data:params
		});
	},
	__api__spudetails:function(id){
		return  http({
			method:'get',
			url:'/spudetails/'+id
		});
	},
	__api__categories:function(){
		return  http({
			method:'get',
			url:'/categories'
		});
	},
	__api__sku_page:function(params){
		return  http({
			method:'get',
			url:'/sku-page',
			data:params
		});
	},
	
	__api__cart_list:function(id){
		return  http({
			method:'get',
			url:'/cart/'+id
		});
	},
	__api__cart_update:function(params){
		return  http({
			method:'put',
			url:'/wx/cart',
			data:params
		});
	},
	__api__listAddrs:function(id){
		return  http({
			method:'get',
			url:'/customer/addrs/'+id
		});
		
	},
	__api__wxUpdateDefaultAddr:function(params){
		return  http({
			method:'put',
			url:'/wx/customer/addrs',
			data:params
		});
	},
	__api__addAddr:function(params){
		return  http({
			method:'post',
			url:'/customer/addrs',
			data:params
		});
	},
	__api__orders:function(params){
		return  http({
			method:'post',
			url:'/orders',
			data:params
		});
		
	}
	
	
	
		
	
}